package cn.com.taurus.impl;

import cn.com.taurus.entity.AdminLog;
import cn.com.taurus.entity.Diary;
import cn.com.taurus.mapper.DiaryMapper;
import cn.com.taurus.service.DiaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName DiaryServiceImpl
 * @Description TODO
 * @Author czh
 * @Date 2021/7/26 16:09
 * @Version 1.0
 */
@Repository
public class DiaryServiceImpl implements DiaryService {
    @Autowired
    DiaryMapper diaryMapper;

    @Override
    public Integer insertLog(Diary diary) {
        return diaryMapper.insertLog(diary);
    }

    @Override
    public List<Diary> queryAllDiary(){
        return diaryMapper.queryAllDiary();
    }

    @Override
    public List<Diary> selectDiary(Diary diary){
        return diaryMapper.selectDiary(diary);
    }

    @Override
    public int deleteDiary(int id){
        return diaryMapper.deleteDiary(id);
    }
}
